Features to support surface physics#135
Conversation
romanc
left a comment
There was a problem hiding this comment.
The linter seems unhappy 😢 Since I don't understand much of nameslists/constants and how they are used, I focused on nitpicking ;)
Would it make sense to have ndsl/stencils/solvers.py such that users can
from ndls.stencils.solvers import masked_tridiagonal_solverwrite imports like the above one? If (in the future) we get to many, many solvers in the future, we could even do subfolders like
from ndsl.stencils.solvers.tridiagonal import thomas_algorithmI'm just thinking out loud here. It might be too early to do that kind of name changes ...
I also think it would be nice to have a simple test for the tridiagonal solvers.
| b: diagonal matrix coefficients | ||
| c: upper-diagonal matrix coefficients | ||
| d: Result vector | ||
| mask: |
There was a problem hiding this comment.
description for mask is missing ...
|
what? |
@oelbert This error also popped up previously, update your base branch and you should be good, i think. |
NDSL has a hook to run tests from pace. These pace tests had issues with |
Description
This PR adds some features used in the SHiELD physics for surface routines, mostly namelist parameters, along with a new basic stencil for averaging fields and a tridiagonal solver.
How Has This Been Tested?
Surface physics schemes have been tested and validated with this branch
Checklist: